//
//  YCAuthorityUtil.h
//  YCBaseModule
//
//  Created by Apple on 2022/11/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

#define kAuthorityUtil [YCAuthorityUtil manager]

@interface YCAuthorityUtil : NSObject

+ (instancetype)manager;

/// 获取网络状态权限
/// @param completion 网络状态
- (void)getAuthorForNetwork:(void (^)(BOOL status))completion;

/// 相机访问权限
/// @param completion 访问状态
- (void)getAuthorForCamera:(void(^)(BOOL status))completion;

/// 相册访问权限
/// @param completion 访问状态
- (void)getAuthorForPhotoLibrary:(void(^)(BOOL status))completion;

/// 通讯录访问权限
/// @param completion 访问状态
- (void)getAuthorForContact:(void(^)(BOOL status))completion;

/// 定位权限
/// @param completion 访问状态
- (void)getAuthorForLocation:(void(^)(BOOL status))completion;

/// 定位蓝牙
/// @param completion 访问状态
- (void)getAuthorForBluetooth:(void(^)(BOOL status))completion;

/// 获取麦克风权限
/// @param completion 访问状态
- (void)getAuthorForMicrophone:(void(^)(BOOL status))completion;

/// 获取推送权限
/// @param completion 访问状态
- (void)getAuthorForPush:(void(^)(BOOL status))completion;

/// 获取语音识别权限
/// @param completion 访问状态
- (void)getAuthorForSpeech:(void(^)(BOOL status))completion;

/// 获取日历备忘录权限
/// @param completion 访问状态
- (void)getAuthorForEvent:(void (^)(BOOL status))completion;

@end

NS_ASSUME_NONNULL_END
